﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for EDaiLy
/// </summary>
public class EDaiLy
{
    private int maDaiLy;
	private string tenDaiLy;
    private string hinhAnh;
	private string noidung;
	private int maNV;
	public EDaiLy()
	{}
    public EDaiLy(int maDaiLy, string tenDaiLy,string hinhAnh, string noidung, int maNV)
	{
	this.maDaiLy = maDaiLy;
	this.tenDaiLy = tenDaiLy;
    this.hinhAnh = hinhAnh;
	this.noidung = noidung;
	this.maNV = maNV;
	}
	public int MaDaiLy
    {
	get { return this.maDaiLy;}
	set {
		this.maDaiLy=value;
	}	}
	public string TenDaiLy
    {
	get { return this.tenDaiLy;}
	set {this.tenDaiLy=value;}
	}
    public string HinhAnh
    {
        get { return this.hinhAnh; }
        set { this.hinhAnh = value; }
    }
	public string Noidung{
	get { return this.noidung;}
	set {this.noidung=value;}
	}
	public int MaNV{
	get { return this.maNV;}
	set { if(value==null) 
		throw new Exception("maNV not allow nullvalue.");
		this.maNV=value;
	}	}
	public override string ToString(){
        return this.maDaiLy + "; " + this.tenDaiLy + "; " + this.hinhAnh + "; " + this.noidung + "; " + this.maNV + "; ";
	}
	public override bool Equals(Object obj)
	{
        EDaiLy me = (EDaiLy)obj;
	bool ret=this.MaDaiLy.Equals(me.MaDaiLy);
	return ret;
	}
	public override int GetHashCode()
	{
	return this.MaDaiLy.GetHashCode();
	}


}